import React, { Component } from 'react';
import PropTypes from "prop-types";
import classNames from "classnames";

export default class SlideGroup extends Component {
    static propTypes = {
        className: PropTypes.string,
    }

    static defaultProps = {
        prefixCls:"x",
    }

    setHeight = () => {

    }

    render() {
        let { className, children, ...rest } = this.props;
        let clones = React.Children.map(children,(node) => {

            return React.cloneElement(node,{
                setHeight:this.setHeight,
            })
        });

        return (
            <div {...rest} className={classNames(prefixCls,className,`${prefixCls}-slide-wrapper`)} >
               {
                   clones
               } 
            </div>
        )
    }
}
